{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\burlacue\Dropbox\Corruption papper\DATAVERSE\second-stage-estimates.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}18 Oct 2017, 19:31:02
{txt}
{com}. 
. **** This code can be used to generate Table 1 
. * "Second-stage estimates of ideological proximity on vote choice" in the article
. * and Table 5 in the Online Appendix 
. 
. ***The measures for corruption should be purchased from the PRG Group. 
. *In this article, I used the monthy measures of corruption from Table 3b and 
. *calculated the annual averages:
. *forvalues i=1984/2016{c -(}
. *gen corruption`i'= _01_`i'+_02_`i'+ _03_`i'+_04_`i'+ _05_`i' + _06_`i'+ ///
> *_07_`i'+_08_`i'+ _09_`i'+_10_`i'+ _11_`i' + _12_`i'
. *{c )-}
. *drop Variable _01_1984 - _01_2017
. *reshape long corruption, i(Country) j(year)
. ** These should be merged with the data. Make sure the variable is called corruption 
. 
. ** The uploaded dataset DOES NOT include a variable for corruption!!!
. 
. use "clogit_coefficients.dta", clear
{txt}( )

{com}. 
. * Model 1 in Table 1
. edvreg coef corruption gdp growth durable partyage pr pluralty mdmh p_effnv   p_maj  state east noneuro system, dvste(serror) 

{txt}Sampled dependent variable regression

Estimated Sigma     = {res}0.00000
{txt}Mean Omega2         = {res} 1.2e+07
{txt}(sum of wgt is   7.0867e+04)

      Source {c |}       SS           df       MS      Number of obs   ={res}        97
{txt}{hline 13}{c +}{hline 34}   F(14, 82)       = {res}     6.23
{txt}       Model {c |} {res} .964753538        14  .068910967   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} .907104075        82  .011062245   {txt}R-squared       ={res}    0.5154
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.4327
{txt}       Total {c |} {res} 1.87185761        96  .019498517   {txt}Root MSE        =   {res} .10518

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        coef{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}corruption {c |}{col 14}{res}{space 2}-.2232499{col 26}{space 2} .0705563{col 37}{space 1}   -3.16{col 46}{space 3}0.002{col 54}{space 4}-.3636089{col 67}{space 3} -.082891
{txt}{space 9}gdp {c |}{col 14}{res}{space 2}  .033783{col 26}{space 2} .0134807{col 37}{space 1}    2.51{col 46}{space 3}0.014{col 54}{space 4} .0069657{col 67}{space 3} .0606004
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0032694{col 26}{space 2}  .004638{col 37}{space 1}   -0.70{col 46}{space 3}0.483{col 54}{space 4}-.0124959{col 67}{space 3} .0059571
{txt}{space 5}durable {c |}{col 14}{res}{space 2} .0000414{col 26}{space 2}  .000424{col 37}{space 1}    0.10{col 46}{space 3}0.922{col 54}{space 4}-.0008022{col 67}{space 3}  .000885
{txt}{space 4}partyage {c |}{col 14}{res}{space 2}-.0000116{col 26}{space 2} .0005226{col 37}{space 1}   -0.02{col 46}{space 3}0.982{col 54}{space 4}-.0010514{col 67}{space 3} .0010281
{txt}{space 10}pr {c |}{col 14}{res}{space 2} .0226809{col 26}{space 2} .0400148{col 37}{space 1}    0.57{col 46}{space 3}0.572{col 54}{space 4}-.0569213{col 67}{space 3}  .102283
{txt}{space 4}pluralty {c |}{col 14}{res}{space 2} .0178625{col 26}{space 2} .0331736{col 37}{space 1}    0.54{col 46}{space 3}0.592{col 54}{space 4}-.0481303{col 67}{space 3} .0838554
{txt}{space 8}mdmh {c |}{col 14}{res}{space 2} .0011491{col 26}{space 2} .0005666{col 37}{space 1}    2.03{col 46}{space 3}0.046{col 54}{space 4} .0000219{col 67}{space 3} .0022763
{txt}{space 5}p_effnv {c |}{col 14}{res}{space 2}-.0142619{col 26}{space 2} .0093342{col 37}{space 1}   -1.53{col 46}{space 3}0.130{col 54}{space 4}-.0328307{col 67}{space 3} .0043069
{txt}{space 7}p_maj {c |}{col 14}{res}{space 2}-.2085024{col 26}{space 2} .1277564{col 37}{space 1}   -1.63{col 46}{space 3}0.107{col 54}{space 4}-.4626507{col 67}{space 3} .0456458
{txt}{space 7}state {c |}{col 14}{res}{space 2}-.0258504{col 26}{space 2} .0438249{col 37}{space 1}   -0.59{col 46}{space 3}0.557{col 54}{space 4}-.1130321{col 67}{space 3} .0613313
{txt}{space 8}east {c |}{col 14}{res}{space 2} .0666102{col 26}{space 2} .0517449{col 37}{space 1}    1.29{col 46}{space 3}0.202{col 54}{space 4}-.0363269{col 67}{space 3} .1695474
{txt}{space 5}noneuro {c |}{col 14}{res}{space 2}-.1301052{col 26}{space 2} .0424579{col 37}{space 1}   -3.06{col 46}{space 3}0.003{col 54}{space 4}-.2145675{col 67}{space 3}-.0456429
{txt}{space 6}system {c |}{col 14}{res}{space 2} .0404463{col 26}{space 2} .0407373{col 37}{space 1}    0.99{col 46}{space 3}0.324{col 54}{space 4}-.0405931{col 67}{space 3} .1214858
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .6775885{col 26}{space 2} .1085317{col 37}{space 1}    6.24{col 46}{space 3}0.000{col 54}{space 4} .4616844{col 67}{space 3} .8934926
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store full
{txt}
{com}. 
. * Model 2 in Table 1
. edvreg coef_p corruption gdp growth durable partyage pr pluralty mdmh p_effnv  p_maj  state east noneuro system , dvste(serror_p) 

{txt}Sampled dependent variable regression

Estimated Sigma     = {res}0.00000
{txt}Mean Omega2         = {res} 1.2e+07
{txt}(sum of wgt is   3.9337e+04)

      Source {c |}       SS           df       MS      Number of obs   ={res}        96
{txt}{hline 13}{c +}{hline 34}   F(14, 81)       = {res}     4.33
{txt}       Model {c |} {res} .657408602        14  .046957757   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} .878086895        81  .010840579   {txt}R-squared       ={res}    0.4281
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.3293
{txt}       Total {c |} {res}  1.5354955        95   .01616311   {txt}Root MSE        =   {res} .10412

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      coef_p{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}corruption {c |}{col 14}{res}{space 2}-.2443587{col 26}{space 2} .0689712{col 37}{space 1}   -3.54{col 46}{space 3}0.001{col 54}{space 4}-.3815897{col 67}{space 3}-.1071277
{txt}{space 9}gdp {c |}{col 14}{res}{space 2}  .033539{col 26}{space 2} .0131719{col 37}{space 1}    2.55{col 46}{space 3}0.013{col 54}{space 4}  .007331{col 67}{space 3}  .059747
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0038119{col 26}{space 2} .0047363{col 37}{space 1}   -0.80{col 46}{space 3}0.423{col 54}{space 4}-.0132357{col 67}{space 3} .0056119
{txt}{space 5}durable {c |}{col 14}{res}{space 2} .0000861{col 26}{space 2} .0004109{col 37}{space 1}    0.21{col 46}{space 3}0.835{col 54}{space 4}-.0007314{col 67}{space 3} .0009036
{txt}{space 4}partyage {c |}{col 14}{res}{space 2}-.0005108{col 26}{space 2} .0005244{col 37}{space 1}   -0.97{col 46}{space 3}0.333{col 54}{space 4}-.0015542{col 67}{space 3} .0005326
{txt}{space 10}pr {c |}{col 14}{res}{space 2} .0647695{col 26}{space 2} .0391677{col 37}{space 1}    1.65{col 46}{space 3}0.102{col 54}{space 4}-.0131619{col 67}{space 3} .1427009
{txt}{space 4}pluralty {c |}{col 14}{res}{space 2} .0232181{col 26}{space 2} .0360845{col 37}{space 1}    0.64{col 46}{space 3}0.522{col 54}{space 4}-.0485789{col 67}{space 3}  .095015
{txt}{space 8}mdmh {c |}{col 14}{res}{space 2} .0010172{col 26}{space 2} .0006678{col 37}{space 1}    1.52{col 46}{space 3}0.132{col 54}{space 4}-.0003115{col 67}{space 3} .0023459
{txt}{space 5}p_effnv {c |}{col 14}{res}{space 2}-.0021315{col 26}{space 2} .0093314{col 37}{space 1}   -0.23{col 46}{space 3}0.820{col 54}{space 4} -.020698{col 67}{space 3}  .016435
{txt}{space 7}p_maj {c |}{col 14}{res}{space 2}-.3649558{col 26}{space 2} .1327504{col 37}{space 1}   -2.75{col 46}{space 3}0.007{col 54}{space 4}-.6290875{col 67}{space 3}-.1008241
{txt}{space 7}state {c |}{col 14}{res}{space 2}-.0197465{col 26}{space 2}  .043261{col 37}{space 1}   -0.46{col 46}{space 3}0.649{col 54}{space 4}-.1058222{col 67}{space 3} .0663293
{txt}{space 8}east {c |}{col 14}{res}{space 2} .1119655{col 26}{space 2} .0530995{col 37}{space 1}    2.11{col 46}{space 3}0.038{col 54}{space 4} .0063141{col 67}{space 3} .2176168
{txt}{space 5}noneuro {c |}{col 14}{res}{space 2}-.0809202{col 26}{space 2} .0448854{col 37}{space 1}   -1.80{col 46}{space 3}0.075{col 54}{space 4} -.170228{col 67}{space 3} .0083877
{txt}{space 6}system {c |}{col 14}{res}{space 2}-.0030171{col 26}{space 2} .0407469{col 37}{space 1}   -0.07{col 46}{space 3}0.941{col 54}{space 4}-.0840906{col 67}{space 3} .0780565
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .5245373{col 26}{space 2} .1065238{col 37}{space 1}    4.92{col 46}{space 3}0.000{col 54}{space 4} .3125884{col 67}{space 3} .7364862
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store partisan
{txt}
{com}. 
. * Model 3 in Table 1
. edvreg coef corruption gdp growth durable partyage pr pluralty mdmh p_effnv   p_maj  state east noneuro system  if coef>0 & coef<1 , dvste(serror) 

{txt}Sampled dependent variable regression

Estimated Sigma     = {res}0.11877
{txt}Mean Omega2         = {res}0.05879
{txt}(sum of wgt is   5.8021e+03)

      Source {c |}       SS           df       MS      Number of obs   ={res}        94
{txt}{hline 13}{c +}{hline 34}   F(14, 79)       = {res}     4.73
{txt}       Model {c |} {res} 1.05609565        14  .075435404   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res}  1.2588536        79  .015934856   {txt}R-squared       ={res}    0.4562
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.3598
{txt}       Total {c |} {res} 2.31494926        93  .024891927   {txt}Root MSE        =   {res} .12623

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        coef{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}corruption {c |}{col 14}{res}{space 2}-.1777487{col 26}{space 2} .0818414{col 37}{space 1}   -2.17{col 46}{space 3}0.033{col 54}{space 4}-.3406499{col 67}{space 3}-.0148474
{txt}{space 9}gdp {c |}{col 14}{res}{space 2} .0427754{col 26}{space 2} .0170733{col 37}{space 1}    2.51{col 46}{space 3}0.014{col 54}{space 4} .0087919{col 67}{space 3} .0767589
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0039647{col 26}{space 2} .0052552{col 37}{space 1}   -0.75{col 46}{space 3}0.453{col 54}{space 4}-.0144249{col 67}{space 3} .0064956
{txt}{space 5}durable {c |}{col 14}{res}{space 2}-.0001446{col 26}{space 2} .0005306{col 37}{space 1}   -0.27{col 46}{space 3}0.786{col 54}{space 4}-.0012007{col 67}{space 3} .0009115
{txt}{space 4}partyage {c |}{col 14}{res}{space 2}-.0001904{col 26}{space 2} .0006231{col 37}{space 1}   -0.31{col 46}{space 3}0.761{col 54}{space 4}-.0014308{col 67}{space 3} .0010499
{txt}{space 10}pr {c |}{col 14}{res}{space 2} .0059735{col 26}{space 2}  .051319{col 37}{space 1}    0.12{col 46}{space 3}0.908{col 54}{space 4}-.0961743{col 67}{space 3} .1081214
{txt}{space 4}pluralty {c |}{col 14}{res}{space 2} .0246462{col 26}{space 2} .0363357{col 37}{space 1}    0.68{col 46}{space 3}0.500{col 54}{space 4}-.0476783{col 67}{space 3} .0969706
{txt}{space 8}mdmh {c |}{col 14}{res}{space 2} .0011402{col 26}{space 2} .0006021{col 37}{space 1}    1.89{col 46}{space 3}0.062{col 54}{space 4}-.0000582{col 67}{space 3} .0023387
{txt}{space 5}p_effnv {c |}{col 14}{res}{space 2}-.0165161{col 26}{space 2} .0107748{col 37}{space 1}   -1.53{col 46}{space 3}0.129{col 54}{space 4}-.0379628{col 67}{space 3} .0049305
{txt}{space 7}p_maj {c |}{col 14}{res}{space 2}-.2137887{col 26}{space 2} .1494786{col 37}{space 1}   -1.43{col 46}{space 3}0.157{col 54}{space 4}-.5113185{col 67}{space 3} .0837411
{txt}{space 7}state {c |}{col 14}{res}{space 2}-.0024742{col 26}{space 2} .0497353{col 37}{space 1}   -0.05{col 46}{space 3}0.960{col 54}{space 4}-.1014698{col 67}{space 3} .0965214
{txt}{space 8}east {c |}{col 14}{res}{space 2} .0632381{col 26}{space 2} .0567146{col 37}{space 1}    1.12{col 46}{space 3}0.268{col 54}{space 4}-.0496494{col 67}{space 3} .1761256
{txt}{space 5}noneuro {c |}{col 14}{res}{space 2}-.1214827{col 26}{space 2}  .050281{col 37}{space 1}   -2.42{col 46}{space 3}0.018{col 54}{space 4}-.2215646{col 67}{space 3}-.0214009
{txt}{space 6}system {c |}{col 14}{res}{space 2} .0592062{col 26}{space 2} .0465218{col 37}{space 1}    1.27{col 46}{space 3}0.207{col 54}{space 4}-.0333931{col 67}{space 3} .1518056
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .657142{col 26}{space 2} .1334876{col 37}{space 1}    4.92{col 46}{space 3}0.000{col 54}{space 4} .3914416{col 67}{space 3} .9228425
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store outliers
{txt}
{com}. 
. ** Generate Table 1 
. esttab full partisan outliers using  twostep.tex, replace b(3) se(3) scalars(ll r2) label
{res}{txt}(output written to {browse  `"twostep.tex"'})

{com}. 
. *** robustness checks (Table 3 - Online Appendix)
. edvreg coef corruption  , dvste(serror) 

{txt}Sampled dependent variable regression

Estimated Sigma     = {res}0.00000
{txt}Mean Omega2         = {res} 1.1e+07
{txt}(sum of wgt is   7.2622e+04)

      Source {c |}       SS           df       MS      Number of obs   ={res}       103
{txt}{hline 13}{c +}{hline 34}   F(1, 101)       = {res}    25.74
{txt}       Model {c |} {res} .409246383         1  .409246383   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 1.60598683       101   .01590086   {txt}R-squared       ={res}    0.2031
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.1952
{txt}       Total {c |} {res} 2.01523321       102  .019757188   {txt}Root MSE        =   {res}  .1261

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        coef{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}corruption {c |}{col 14}{res}{space 2}-.2594513{col 26}{space 2} .0511415{col 37}{space 1}   -5.07{col 46}{space 3}0.000{col 54}{space 4}-.3609023{col 67}{space 3}-.1580002
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .6283851{col 26}{space 2} .0210264{col 37}{space 1}   29.89{col 46}{space 3}0.000{col 54}{space 4} .5866744{col 67}{space 3} .6700958
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store rob1
{txt}
{com}. 
. edvreg coef corruption gdp durable , dvste(serror) 

{txt}Sampled dependent variable regression

Estimated Sigma     = {res}0.00000
{txt}Mean Omega2         = {res} 1.1e+07
{txt}(sum of wgt is   7.2622e+04)

      Source {c |}       SS           df       MS      Number of obs   ={res}       103
{txt}{hline 13}{c +}{hline 34}   F(3, 99)        = {res}    16.79
{txt}       Model {c |} {res} .679666634         3  .226555545   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 1.33556658        99  .013490571   {txt}R-squared       ={res}    0.3373
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.3172
{txt}       Total {c |} {res} 2.01523321       102  .019757188   {txt}Root MSE        =   {res} .11615

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        coef{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}corruption {c |}{col 14}{res}{space 2}-.2121763{col 26}{space 2}  .056953{col 37}{space 1}   -3.73{col 46}{space 3}0.000{col 54}{space 4}-.3251834{col 67}{space 3}-.0991693
{txt}{space 9}gdp {c |}{col 14}{res}{space 2} .0489105{col 26}{space 2} .0110255{col 37}{space 1}    4.44{col 46}{space 3}0.000{col 54}{space 4} .0270335{col 67}{space 3} .0707876
{txt}{space 5}durable {c |}{col 14}{res}{space 2}-.0007581{col 26}{space 2} .0003079{col 37}{space 1}   -2.46{col 46}{space 3}0.016{col 54}{space 4}-.0013691{col 67}{space 3}-.0001471
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .5169542{col 26}{space 2} .0433291{col 37}{space 1}   11.93{col 46}{space 3}0.000{col 54}{space 4} .4309798{col 67}{space 3} .6029286
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store rob2
{txt}
{com}. 
. edvreg coef corruption gdp durable partyage pr pluralty mdmh p_effnv   , dvste(serror) 

{txt}Sampled dependent variable regression

Estimated Sigma     = {res}0.00000
{txt}Mean Omega2         = {res} 1.1e+07
{txt}(sum of wgt is   7.2131e+04)

      Source {c |}       SS           df       MS      Number of obs   ={res}       101
{txt}{hline 13}{c +}{hline 34}   F(8, 92)        = {res}     6.08
{txt}       Model {c |} {res} .667418855         8  .083427357   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 1.26271944        92  .013725211   {txt}R-squared       ={res}    0.3458
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2889
{txt}       Total {c |} {res} 1.93013829       100  .019301383   {txt}Root MSE        =   {res} .11715

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        coef{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}corruption {c |}{col 14}{res}{space 2}-.2094034{col 26}{space 2} .0649975{col 37}{space 1}   -3.22{col 46}{space 3}0.002{col 54}{space 4} -.338494{col 67}{space 3}-.0803129
{txt}{space 9}gdp {c |}{col 14}{res}{space 2} .0467261{col 26}{space 2} .0123431{col 37}{space 1}    3.79{col 46}{space 3}0.000{col 54}{space 4} .0222116{col 67}{space 3} .0712407
{txt}{space 5}durable {c |}{col 14}{res}{space 2} -.000661{col 26}{space 2} .0003847{col 37}{space 1}   -1.72{col 46}{space 3}0.089{col 54}{space 4}-.0014249{col 67}{space 3}  .000103
{txt}{space 4}partyage {c |}{col 14}{res}{space 2} .0000416{col 26}{space 2} .0004765{col 37}{space 1}    0.09{col 46}{space 3}0.931{col 54}{space 4}-.0009047{col 67}{space 3} .0009879
{txt}{space 10}pr {c |}{col 14}{res}{space 2} .0423813{col 26}{space 2} .0426296{col 37}{space 1}    0.99{col 46}{space 3}0.323{col 54}{space 4}-.0422848{col 67}{space 3} .1270474
{txt}{space 4}pluralty {c |}{col 14}{res}{space 2}-.0134692{col 26}{space 2} .0288805{col 37}{space 1}   -0.47{col 46}{space 3}0.642{col 54}{space 4}-.0708284{col 67}{space 3} .0438899
{txt}{space 8}mdmh {c |}{col 14}{res}{space 2}  .000281{col 26}{space 2} .0005478{col 37}{space 1}    0.51{col 46}{space 3}0.609{col 54}{space 4}-.0008071{col 67}{space 3}  .001369
{txt}{space 5}p_effnv {c |}{col 14}{res}{space 2} -.006937{col 26}{space 2} .0089226{col 37}{space 1}   -0.78{col 46}{space 3}0.439{col 54}{space 4} -.024658{col 67}{space 3}  .010784
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .5119109{col 26}{space 2} .0745513{col 37}{space 1}    6.87{col 46}{space 3}0.000{col 54}{space 4} .3638455{col 67}{space 3} .6599763
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store rob3
{txt}
{com}. 
. edvreg coef corruption gdp durable  p_maj  state system, dvste(serror) 

{txt}Sampled dependent variable regression

Estimated Sigma     = {res}0.00000
{txt}Mean Omega2         = {res} 1.1e+07
{txt}(sum of wgt is   7.1358e+04)

      Source {c |}       SS           df       MS      Number of obs   ={res}        99
{txt}{hline 13}{c +}{hline 34}   F(6, 92)        = {res}    10.44
{txt}       Model {c |} {res} .792391243         6  .132065207   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 1.16418774        92  .012654215   {txt}R-squared       ={res}    0.4050
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.3662
{txt}       Total {c |} {res} 1.95657899        98  .019965092   {txt}Root MSE        =   {res} .11249

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        coef{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}corruption {c |}{col 14}{res}{space 2}-.1436049{col 26}{space 2} .0599981{col 37}{space 1}   -2.39{col 46}{space 3}0.019{col 54}{space 4}-.2627663{col 67}{space 3}-.0244435
{txt}{space 9}gdp {c |}{col 14}{res}{space 2} .0386354{col 26}{space 2} .0114122{col 37}{space 1}    3.39{col 46}{space 3}0.001{col 54}{space 4} .0159697{col 67}{space 3} .0613011
{txt}{space 5}durable {c |}{col 14}{res}{space 2}-.0007476{col 26}{space 2} .0003126{col 37}{space 1}   -2.39{col 46}{space 3}0.019{col 54}{space 4}-.0013685{col 67}{space 3}-.0001266
{txt}{space 7}p_maj {c |}{col 14}{res}{space 2}-.0297657{col 26}{space 2} .1030975{col 37}{space 1}   -0.29{col 46}{space 3}0.773{col 54}{space 4}-.2345263{col 67}{space 3} .1749949
{txt}{space 7}state {c |}{col 14}{res}{space 2} .0146719{col 26}{space 2} .0411103{col 37}{space 1}    0.36{col 46}{space 3}0.722{col 54}{space 4}-.0669767{col 67}{space 3} .0963204
{txt}{space 6}system {c |}{col 14}{res}{space 2} .1178564{col 26}{space 2}  .037066{col 37}{space 1}    3.18{col 46}{space 3}0.002{col 54}{space 4} .0442402{col 67}{space 3} .1914726
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .429017{col 26}{space 2} .0735848{col 37}{space 1}    5.83{col 46}{space 3}0.000{col 54}{space 4} .2828712{col 67}{space 3} .5751628
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store rob4
{txt}
{com}. 
. edvreg coef corruption gdp growth durable partyage pr pluralty mdmh p_effnv   p_maj  state noneuro system if east==0, dvste(serror) 

{txt}Sampled dependent variable regression

Estimated Sigma     = {res}0.00000
{txt}Mean Omega2         = {res} 1.3e+07
{txt}(sum of wgt is   6.0325e+04)

      Source {c |}       SS           df       MS      Number of obs   ={res}        80
{txt}{hline 13}{c +}{hline 34}   F(13, 66)       = {res}     6.78
{txt}       Model {c |} {res} .892124819        13  .068624986   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} .668104642        66  .010122798   {txt}R-squared       ={res}    0.5718
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.4874
{txt}       Total {c |} {res} 1.56022946        79   .01974974   {txt}Root MSE        =   {res} .10061

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        coef{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}corruption {c |}{col 14}{res}{space 2}-.2203146{col 26}{space 2}  .087687{col 37}{space 1}   -2.51{col 46}{space 3}0.014{col 54}{space 4}-.3953874{col 67}{space 3}-.0452418
{txt}{space 9}gdp {c |}{col 14}{res}{space 2} .0299108{col 26}{space 2} .0144911{col 37}{space 1}    2.06{col 46}{space 3}0.043{col 54}{space 4} .0009784{col 67}{space 3} .0588432
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0023095{col 26}{space 2} .0050015{col 37}{space 1}   -0.46{col 46}{space 3}0.646{col 54}{space 4}-.0122954{col 67}{space 3} .0076764
{txt}{space 5}durable {c |}{col 14}{res}{space 2} 2.90e-06{col 26}{space 2} .0004349{col 37}{space 1}    0.01{col 46}{space 3}0.995{col 54}{space 4}-.0008654{col 67}{space 3} .0008712
{txt}{space 4}partyage {c |}{col 14}{res}{space 2} .0000759{col 26}{space 2}  .000544{col 37}{space 1}    0.14{col 46}{space 3}0.889{col 54}{space 4}-.0010102{col 67}{space 3} .0011621
{txt}{space 10}pr {c |}{col 14}{res}{space 2} .0182873{col 26}{space 2} .0401257{col 37}{space 1}    0.46{col 46}{space 3}0.650{col 54}{space 4}-.0618263{col 67}{space 3} .0984008
{txt}{space 4}pluralty {c |}{col 14}{res}{space 2} .0142294{col 26}{space 2}  .039999{col 37}{space 1}    0.36{col 46}{space 3}0.723{col 54}{space 4}-.0656311{col 67}{space 3} .0940899
{txt}{space 8}mdmh {c |}{col 14}{res}{space 2}  .001545{col 26}{space 2} .0006849{col 37}{space 1}    2.26{col 46}{space 3}0.027{col 54}{space 4} .0001776{col 67}{space 3} .0029123
{txt}{space 5}p_effnv {c |}{col 14}{res}{space 2}-.0179724{col 26}{space 2} .0110598{col 37}{space 1}   -1.63{col 46}{space 3}0.109{col 54}{space 4}-.0400539{col 67}{space 3} .0041091
{txt}{space 7}p_maj {c |}{col 14}{res}{space 2}-.1661059{col 26}{space 2} .1344865{col 37}{space 1}   -1.24{col 46}{space 3}0.221{col 54}{space 4}-.4346168{col 67}{space 3}  .102405
{txt}{space 7}state {c |}{col 14}{res}{space 2}-.0567352{col 26}{space 2} .0521219{col 37}{space 1}   -1.09{col 46}{space 3}0.280{col 54}{space 4}-.1607999{col 67}{space 3} .0473295
{txt}{space 5}noneuro {c |}{col 14}{res}{space 2}-.1257802{col 26}{space 2} .0446053{col 37}{space 1}   -2.82{col 46}{space 3}0.006{col 54}{space 4}-.2148376{col 67}{space 3}-.0367228
{txt}{space 6}system {c |}{col 14}{res}{space 2} .0776281{col 26}{space 2} .0555089{col 37}{space 1}    1.40{col 46}{space 3}0.167{col 54}{space 4} -.033199{col 67}{space 3} .1884552
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .6720739{col 26}{space 2} .1178456{col 37}{space 1}    5.70{col 46}{space 3}0.000{col 54}{space 4} .4367875{col 67}{space 3} .9073602
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store rob5
{txt}
{com}. 
. esttab rob1 rob2 rob3 rob4 rob5 using  twostep_robust.tex, replace b(3) se(3) scalars(ll r2) label mtitles("Baseline" "GDP+Democracy" "Electoral Institutions" "Government Structure" "Political Institutions" "Economic Growth")
{res}{txt}(output written to {browse  `"twostep_robust.tex"'})

{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\burlacue\Dropbox\Corruption papper\DATAVERSE\second-stage-estimates.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}18 Oct 2017, 19:31:03
{txt}{.-}
{smcl}
{txt}{sf}{ul off}